"""
频道功能相关
"""
from flask_restful import fields
user_channel_fields = {
    'uid': fields.Integer,
    'cid': fields.Integer,
    'is_delete': fields.Boolean,
}


channel_fields = {
    'name': fields.String(attribute='cname'),
    'create_time': fields.DateTime(attribute='ctime'),
    'update_time': fields.DateTime(attribute='utime'),
    'sequence': fields.Integer(default=100),
    'is_visible': fields.Boolean,
    'is_default': fields.Boolean,
}
